package org.zcl.多态;

/**
 * @PROJECT_NAME: bfd-cms
 * @DESCRIPTION:
 * @USER: ZhuChengLin
 * @DATE: 2021/11/11 11:05
 */
public class Son extends Father{

    public void say(){
        System.out.println("father");
    }

    public static void action(){
        System.out.println("打打！");
    }

    public void eat(){
        System.out.println("son eat");
    }

    public static void main(String[] args) {
        Father f = new Son();
        f.say();
        // new这个类调用的是父类静态方法
        f.action();
    }

}
